package ophiux.wechat.template.util.parse;

import ophiux.OphiuxWechatTemplateMessageException;

public interface IConvert {

	/**
	 * 
	 * @param clzz   
	 * @param dataSource   
	 * @return
	 */
	public <T> T toEntity(Class<T> clzz,String dataSource) throws OphiuxWechatTemplateMessageException;
	
	/**
	 * 将实体转换为字符串,XML/JSON
	 * @param obj
	 * @return  转换后的字符串
	 * @throws OphiuxApiException
	 */
	public <T> String entityToString(T obj) throws OphiuxWechatTemplateMessageException;
	
}
